<form autocomplete="off" class="layui-form layui-box modal-form-box" action="{:request()->url()}" data-auto="true" method="post">

    <div class="layui-form-item">
        <label class="layui-form-label label-required">
            轮播图片<br><span class="nowrap color-desc"></span>
        </label>
        <div class='layui-input-block'>
            <img data-tips-image style="height:auto;max-height:189px;max-width:375px" src="{$vo.thumb ?: '__STATIC__/theme/img/image.png'}"/>
            <input type="hidden" name="thumb" onchange="$(this).prev('img').attr('src', this.value)" value="{$vo.thumb ?: ''}" class="layui-input">
            <a class="btn btn-link" data-file="one" data-uptype="" data-width="" data-height="" data-type="png,jpg,jpeg" data-field="thumb">上传图片</a>
            <p class="help-block">上传尺寸1920*870</p>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">跳转链接：</label>
        <div class="layui-input-block">
            <input autofocus name="link" value='{$vo.link|default=""}' title="请输入" placeholder="请输入" class="layui-input">
        </div>
    </div>

    <div class="hr-line-dashed"></div>

    <div class="layui-form-item text-center">
        {if isset($vo['id'])}<input type='hidden' value='{$vo.id}' name='id'/>{/if}
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div>
</form>
